<%@ Page Language="C#" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Assembly="TextChanged" Namespace="TextChanged" TagPrefix="samples" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>TextChangedExtender</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="TheScriptManager" runat="server"></asp:ScriptManager>
    
    <div>
        <h2>Please open the browser's console</h2>
    </div>
    
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
          <div>Updated at: <%= DateTime.Now %></div>             

          <asp:TextBox ID="TextBox1" runat="server" AutoPostBack="true" />

          <samples:TextChangedExtender ID="TextChangedExtender1" runat="server"
               TargetControlID="TextBox1"
               Timeout="1000"                                    
               OnTextChanged="onTextChanged"                     
               />
        </ContentTemplate>
        
    </asp:UpdatePanel>

    <script type="text/javascript">
    <!--
        function onTextChanged(sender, e) {
            Sys.Debug.trace('textChanged event handled');
        }
    //-->
    </script>
    
    </form>
</body>
</html>
